EmojiReactionListAdapter

open class EmojiReactionListAdapter : BaseAdapter<T, VH>

EmojiReactionListAdapter provides a binding from a Reaction set to views that are displayed within a RecyclerView. since 1.1.0

Functions

Link copied to clipboard
open fun getItem(position: Int): Reaction
Returns the Reaction in the data set held by the adapter.
Link copied to clipboard
open fun getItemCount(): Int
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
open fun getItems(): List<Reaction>
Returns the < in the data set held by the adapter.
Link copied to clipboard
open fun getItemViewType(position: Int): Int
Return the view type of the < at position for the purposes of view recycling.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<Reaction>, position: Int)
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): BaseViewHolder<Reaction>
Called when RecyclerView needs a new < of the given type to represent an item.
Link copied to clipboard
open fun setClickable(clickable: Boolean)
Enables or disables click events for this view.
Link copied to clipboard
open fun setEmojiReactionClickListener(@Nullable emojiReactionClickListener: OnItemClickListener<String>)
Register a callback to be invoked when the emoji reaction is clicked and held.
Link copied to clipboard
open fun setEmojiReactionLongClickListener(@Nullable emojiReactionLongClickListener: OnItemLongClickListener<String>)
Register a callback to be invoked when the emoji reaction is long clicked and held.
Link copied to clipboard
open fun setLongClickable(longClickable: Boolean)
Enables or disables long click events for this view.
Link copied to clipboard
open fun setMoreButtonClickListener(@Nullable moreButtonClickListener: View.OnClickListener)
Register a callback to be invoked when the emoji reaction more button is clicked and held.
Link copied to clipboard
open fun setReactionList(@NonNull reactionList: List<Reaction>)
Sets the < to be displayed.
Link copied to clipboard
open fun setUseMoreButton(useMoreButton: Boolean)
Sets a value if using the more button in the reaction view.
Link copied to clipboard
open fun useMoreButton(): Boolean
Indicates whether this view using a more button or not.